<!--
  Generated template for the PubDiscoveryPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-navbar color="gm-primary">
    <ion-title>新的分享</ion-title>
  </ion-navbar>
</ion-header>


<ion-content padding>
  <div>
    <ion-avatar (click)="onImageUpload()">
      <img [src]="chosenImage || placeholder"/>
      <button ion-button color="gm-primary" small>选择图片</button>
    </ion-avatar>
    <div class="text-area" margin-top>
      <ion-textarea rows="5" name="discovery" [(ngModel)]="post_data.content" placeholder="请输入分享内容"></ion-textarea>
    </div>

    <button ion-button color="gm-primary" full margin-top (click)="onPubDiscovery()">发布分享内容</button>
  </div>
</ion-content>
